package com.example.spring.thread.interrupt;

/**
 * @author: orange
 * @create: 2023-08-04 21:51
 * @description:
 */
public class InterruptThread implements Runnable {
    @Override
    public void run() {
        while (!Thread.currentThread().isInterrupted()) {

        }
        System.out.println("线程允许停止！");
    }
}
